package com.typhoon.spring_jdbctemplate.dao.support;

import java.io.Serializable;

/**
 * 分页查询条件
 * 
 * @author Typhoon
 * @date 2018-05-06 14:47 Sunday
 */
public class PageQuery implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8494182073317177474L;
	
	/**
	 * 分页大小
	 * <p>默认20</p>
	 */
	private int pageSize = 20;
	
	/**
	 * 当前分页,默认第一页
	 */
	private int pageIndex = 1;
	
	public PageQuery(int pageSize, int pageIndex) {
		super();
		this.pageSize = pageSize;
		this.pageIndex = pageIndex;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	
}
